home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_9744_000058.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  2.7 KB

  1. Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!cville-srv.wam.umd.edu!walrus
  2. From: walrus@wam.umd.edu (Udo K Schuermann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: GadTools problem
  5. Date: 26 Apr 1994 15:27:40 GMT
  6. Organization: University of Maryland, College Park
  7. Lines: 30
  8. Message-ID: <2pjbtc$dlr@cville-srv.wam.umd.edu>
  9. References: <tvGgeMD1A7aMz1@!dietmar.tomate.oche.de>
  10. NNTP-Posting-Host: rac4.wam.umd.edu
  11.  
  12. In article <tvGgeMD1A7aMz1@!dietmar.tomate.oche.de>,
  13. Dietmar Eilert <DIETMAR@TOMATE.OCHE.DE> wrote:
  14. >I wonder wether it is possible to create two independant lists of
  15. >GENERIC_KIND GadTools gadgets in order to add one list in front of the
  16. >system gadgets (window's top border), the other list after the system
  17. >gadgets (bottom border), using AddGList() twice ?
  18.  
  19. You'll need a context gagdet for each disjoint list of gadgets.  The
  20. context gadget only serves as a place holder, an anchor for a list of
  21. GadTools gadgets.
  22.  
  23. >As far as I can see this requires two CreateContext() calls to get a root
  24. >for subsequent CreateGadget() calls, used to build two gadget lists:
  25.  
  26. Correct.
  27.  
  28. Just be careful about how MANY gadgets you end up removing from a window's
  29. gadget list!  Once CreateGadget() call can create more than one physical
  30. gadget: a listview, for example, consists of scrollbar, up/down arrows, and
  31. two more, I think, whose purpose I can guess at, but that wouldn't be wise.
  32. Make NO assumptions about the number of gadgets actually created by a call
  33. to CreateGadget().
  34.  
  35. I always add GadTools gadget at the very end of a list, after the system
  36. gadgets, and after my non-GadTools gadgets (if any) so that I can get rid
  37. of a list of GadTools gadgets in one swell foop.  Things get tricky in all
  38. other cases, requiring you to count before removing gadgets.
  39.  
  40.  ._.  Udo Schuermann
  41.  ( )  walrus@wam.umd.edu
  42.  
  43.  
  44. Article 22693 (635 more) in comp.sys.amiga.programmer:
  45. From: Michael Smith
  46. Subject: Re: Finding visible area of auto-scroll screen?
  47. Organization: U.Va. Internet Public Access Project
  48. Date: Tue, 23 Nov 1993 12:59:13 GMT
  49. Lines: 14
  50.  
  51. In article <2courq$ivq@galaxy.ucr.edu>,
  52. joseph rumsey <jrumsey@ucrengr.ucr.edu> wrote:
  53. >I think what I'm actually asking is, how do I find out the overscan
  54. >settings for the current mode?  Is there a variable in the screen
  55. >or viewport structure, or do I need to look in preferences, or
  56. >somewhere else entirely?
  57.  
  58. QueryOverScan() fills in a struct Rectangle for whichever overscan
  59. setting you want, given a viewport from the current screen (I think
  60. its the viewport, it may be the visualinfo -- I'm not at home to
  61. check the autodocs or the RKRM).
  62. -- 
  63.   //  Michael B. Smith
  64. \X/   mbs@Hopper.ACS.Virginia.EDU
  65.